package www.ld.com.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import www.ld.com.entities.Dept;

import java.util.List;

//@FeignClient(name = "SPRING-CLOUD-DEMO-PROVIDER") ribbon
@FeignClient(name = "SPRING-CLOUD-DEMO-PROVIDER",fallbackFactory = DeptServiceFallbackFactory.class) //开启 hystrix 添加fallbackFactory
public interface IDeptService {
    @GetMapping("/findAll")
    List<Dept> findAll();
}
